import http from "@/utils/request";
//查询产量情况列表
export default {
    async getClqkList(year,month) {
        return await http.get("/api/getDays/getdataToClqk", { month,year });
    },
    //新增产量情况
    async addClqk(params) {
        return await http.post("/api/clqk/add", params);
    },
    //编辑产量情况
    async updateClqk(params) {
        return await http.put("/api/clqk/update", params);
    },
    // //删除产量情况
    // async deleteClqk(params) {
    //     return await http.delete("/api/clqk/delete", params);
    // },
    async importExcel(myfile) {
        console.log(29999999);
        console.log(myfile.get("myfile"));

        return await http.upload("/api/fileAbout/fileUpload", { myfile })
    },

    //导入文件
    async batchImportExcel(filePath) {
        console.log(typeof (filePath));
        console.log(filePath.get("filePath"));
        return await http.upload("/api/clqk/batchInput", { filePath })
    },
    //下载模板
    async download(params) {
        // console.log(1);
        return await http.get("/api/clqk/downLoadExcel", params)
    },
    //删除
    async delete(params) {
        return await http.delete('api/clqk/delete', params);

    },
    //批量删除
    async Bdelete(params) {
        return await http.post('/api/clqk/batchDelete', params);

    }
};
